#ifndef _SERVER_CONFIG
#define _SERVER_CONFIG

#include "stdafx.h"
#include <string>
#include <deque>
using namespace std;

#define SERVER_CONFIG_FILENAME				"ServerConfig.xml"

class CServerConfig
{
public:
	CServerConfig();
	wstring				m_ConfigPath;			// config file path.

	// Options
	unsigned short		m_Port;
	wstring				m_Username;
	wstring				m_Password;
	wstring				m_Token;
	bool				m_bAutoLogin;
	bool				m_bAutoStartup;
	
	// All user added sharing folders.
	deque<wstring>		m_ShareFolders;			

	bool AddShareFolder(wstring folder);
	bool RemoveShareFolder(wstring folder);
	bool SaveConfig();
	bool LoadConfig();
	void CreateConfigDirectory();
};
#endif